home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / libkmid / midispec.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  2.0 KB  |  61 lines

  1. /*  midispec.h  - Some definitions to make the code more readable 
  2.     This file is part of LibKMid 0.9.5
  3.     Copyright (C) 1997,98,99,2000  Antonio Larrosa Jimenez
  4.     LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
  5.  
  6.     This library is free software; you can redistribute it and/or
  7.     modify it under the terms of the GNU Library General Public
  8.     License as published by the Free Software Foundation; either
  9.     version 2 of the License, or (at your option) any later version.
  10.  
  11.     This library is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.     Library General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU Library General Public License
  17.     along with this library; see the file COPYING.LIB.  If not, write to
  18.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.     Boston, MA 02110-1301, USA.
  20.  
  21.     Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
  22.  
  23. ***************************************************************************/ 
  24.  
  25. #ifndef _MIDISPEC_H
  26. #define _MIDISPEC_H
  27.  
  28. #define META_EVENT 0xFF
  29.  
  30. #define ME_TRACK_SEQ_NUMBER    0x00
  31. #define ME_TEXT            0x01
  32. #define ME_COPYRIGHT        0x02
  33. #define ME_SEQ_OR_TRACK_NAME    0x03
  34. #define ME_TRACK_INSTR_NAME    0x04
  35. #define ME_LYRIC        0x05
  36. #define ME_MARKER        0x06
  37. #define ME_CUE_POINT        0x07
  38. #define ME_CHANNEL_PREFIX       0x20
  39. #define ME_MIDI_PORT            0x21
  40. #define ME_SET_TEMPO        0x51
  41. #define ME_SMPTE_OFFSET         0x54
  42. #define ME_TIME_SIGNATURE    0x58
  43. #define ME_KEY_SIGNATURE    0x59
  44. /* sf=sharps/flats (-7=7 flats, 0=key of C, 7=7 sharps)
  45.    mi=major/minor (0=major, 1=minor)
  46. */                            
  47.  
  48. #define ME_END_OF_TRACK 0x2F
  49.  
  50.  
  51. #define PERCUSSION_CHANNEL 9
  52.  
  53. #define KMID_EXTERNAL_MIDI 1
  54. #define KMID_SYNTH         2
  55. #define KMID_FM            3
  56. #define KMID_GUS           4
  57. #define KMID_AWE           5  //For future class aweOut
  58. #define KMID_ALSA          6
  59.  
  60. #endif
  61.